package com.tjetc.controller;


import com.tjetc.domain.po.District;

import com.tjetc.domain.po.Pass;
import com.tjetc.domain.vo.PassVo;
import com.tjetc.service.PassService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/pass")
public class PassController {

    @Autowired
    PassService passService;

    @GetMapping("/list")
    public List<Pass> passList(Integer vocalcontenId) {
        return passService.list(vocalcontenId);
    }

    @GetMapping("/districeList")
    public List<District> districtList() {
        return passService.districtList();
    }


    @GetMapping("/findById")
    public PassVo findById(Integer id) {
        return passService.findById(id);
    }




}
